Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 5 - Menu Manager Reference / Menu Manager Functions
Manipulating and Accessing Menu Item Characteristics /


GetMenuItemRefCon

NEW WITH THE APPEARANCE MANAGER

Gets application-specific information for a menu item.

pascal OSErr GetMenuItemRefCon (
                     MenuHandle inMenu,
                     SInt16 inItem,
                     SInt32* outRefCon);
inMenu
The handle to the menu structure of the menu item for which you wish to get information.
inItem
An integer representing the item number of the menu item for which you wish to get information.
outRefCon
On output, a pointer to an integer representing a reference constant.
function result
A result code; see "Result Codes".
DISCUSSION
If you have assigned any data to a given menu item using SetMenuItemRefCon function, you can read it using the GetMenuItemRefCon function.

SEE ALSO
"Appearance Manager Gestalt Selector Constants".

SetMenuItemRefCon.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998